package com.xiyu.service.errorCode.material;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* stockOut 错误码枚举类
*
* stockOut 出库管理，使用 1009005000段
*/
public interface StockOutErrorCode {
    Integer ERROR_CODE_START_CODE = 1009005000;

    ErrorCode MATERIAL_STOCK_OUT_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE, "出库单不存在");
    ErrorCode MATERIAL_STOCK_OUT_DETAIL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "出库单明细不存在");
    ErrorCode MATERIAL_STOCK_OUT_NOT_PENDING_REVIEW = new ErrorCode(ERROR_CODE_START_CODE + 2, "出库单状态不是待审核");
    ErrorCode MATERIAL_STOCK_OUT_NOT_PENDING_OUT = new ErrorCode(ERROR_CODE_START_CODE + 3, "出库单状态不是待出库");
    ErrorCode MATERIAL_STOCK_OUT_DETAIL_NOT_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 4, "出库单明细至少有一条");
    ErrorCode MATERIAL_STOCK_OUT_TRANSFER_ID_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 5, "出库单对应的调拨单ID不存在");
    ErrorCode MATERIAL_STOCK_OUT_TRANSFER_NOT_EXISTS = new ErrorCode(ERROR_CODE_START_CODE + 6, "出库单对应的调拨单不存在");
}